-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arch/ra4: Add support for Renesas RA4M1 MCU #15892
Conversation
[Experimental Bot, please feedback here] Yes, this PR appears to meet the NuttX requirements, although it's missing some details. Strengths:
Weaknesses (requiring clarification in the actual PR):
Recommendation: The PR is on the right track, but needs minor improvements to be fully compliant with the NuttX requirements. Addressing the weaknesses listed above will significantly improve its reviewability and chances of acceptance. |
arch/arm/Kconfig
Outdated
@@ -1155,6 +1160,7 @@ config ARCH_CHIP | |||
default "nrf53" if ARCH_CHIP_NRF53 | |||
default "nrf91" if ARCH_CHIP_NRF91 | |||
default "nuc1xx" if ARCH_CHIP_NUC1XX | |||
default "ra" if ARCH_CHIP_RA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@leocafonso I suggest to use "ra4" because there are many ra architectures and families (RA0 [RA0E1], RA2 [RA2L1, RA2E1, RA2E2, RA2A1, RA4[...], ...). Keep all inside a single "ra" will result in a code with too many #ifdefs and that will make the code hard to read. I suggest to use same approach like stm32, stm32f7, stm32h7, etc.
Source: https://www.renesas.com/en/products/microcontrollers-microprocessors/ra-cortex-m-mcus
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@acassis, I got your point. I have changed the arch to ra4. Thanks for the suggestion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge this way, maybe later we could rename it to ra4m1 if we realize the internal peripherals are too different from a family to another
@leocafonso the CI also found these issues: ../nuttx/tools/checkpatch.sh -u -m -g fd6d804..HEAD |
e7b7194
to
eeeac31
Compare
@leocafonso there is a last issue:
These defconfig are out of sync, you can fix it this way: $ ./tools/refresh.sh arduino-r4-minima:nsh-leds |
4848784
to
c4e638c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please split the patch in several commits
documentation
arch
boards
Add basic support for RA4M1. The following perpheral are added: * GPIO * SCI (UART) * Clock (Just internal clock - HOCO) Signed-off-by: leocafonso <[email protected]>
Add support for arduino-r4-minima. Created defconfig and board source files for: * nsh * nsh-leds Signed-off-by: leocafonso <[email protected]>
…ino-r4-minima Signed-off-by: leocafonso <[email protected]>
c4e638c
to
d37162f
Compare
Summary
Add basic support for RA4M1 and arduino-r4-minima. The following peripheral are added:
Impact
This update introduces support for the Renesas RA4M1 MCU, which powers the Arduino R4 Minima board. There is no impact on the existing NuttX codebase.
For more details, refer to the board documentation:
Documentation/platforms/arm/ra4m1/boards/arduino-r4-minima/index.rst
Testing
Successfully booted NSH on SCI2 (Arduino R4 Minima TX/RX).
Executed ostest successfully.